package com.itheima.web;

import com.itheima.service.SetmealGroupService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/setmealgroup")
public class SetmealGroupController {

    @DubboReference
    private SetmealGroupService setmealGroupService;

    @GetMapping("/findBySetmealId/{setmealId}")
    public Long[] findBySetmealId(@PathVariable("setmealId") Long setmealId){
        return setmealGroupService.selectBySetmealId(setmealId);
    }

}
